<?php

Yii::setAlias('apps', realpath(__DIR__ . '/../apps'));
$db = require(__DIR__ . '/db.php');

return [
    'cache' => [
        'class' => 'yii\caching\ApcCache',
    ],
    'user' => [
        'identityClass' => 'apps\user\models\User',
        'enableAutoLogin' => true,
    ],
    'mail' => [
        'class' => 'yii\swiftmailer\Mailer',
        'useFileTransport' => true,
    ],
    'log' => [
        'traceLevel' => YII_DEBUG ? 3 : 0,
        'targets' => [
            [
                'class' => 'yii\log\FileTarget',
                'levels' => ['error', 'warning'],
            ],
        ],
    ],
    'db' => $db,
];
